﻿using System.Windows;
using System.Windows.Controls;

namespace Alvin.Window.Utils.TouchView.UserContorl
{
    /// <summary>
    /// UCNumberKeyboard.xaml 的交互逻辑
    /// </summary>
    public partial class UCNumberKeyboard : UserControl
    {
        public UCNumberKeyboard()
        {
            InitializeComponent();
        }

        private void Number_Click(object sender, RoutedEventArgs e)
        {
            string name = ((System.Windows.FrameworkElement)(sender)).Name;
            KeyboardSend.PushKey(name);
        }

        /// <summary>
        /// 00
        /// </summary>
        private void DoubleNumber_Click(object sender, RoutedEventArgs e)
        {
            KeyboardSend.PushKey("key_0");
            KeyboardSend.PushKey("key_0");
        }
    }
}
